<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>运营管理后台</title>
		<!-- CSS -->
		<link href="css/OpenSans.css" rel="stylesheet" type="text/css">
		<link href="css/bootstrap.min.css" rel="stylesheet">
		<link href="css/jasny-bootstrap.min.css" rel="stylesheet">
		<link href="css/font-awesome.css" rel="stylesheet" type="text/css">
		<link href="css/daterangepicker-bs3.css" rel="stylesheet" type="text/css">
		<link href="css/datepicker.css" rel="stylesheet" type="text/css">
		<link href="css/select2.css" rel="stylesheet" type="text/css">
		<link href="css/select2-bootstrap.css" rel="stylesheet" type="text/css">
		<link href="css/uniform.default.min.css" rel="stylesheet" type="text/css">

		<!--<link href="scripts/css/prettify.css" rel="stylesheet" type="text/css" />
        <link href="http://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.10/css/jquery.dataTables.min.css" rel="stylesheet" type="text/css" />-->
		<link href="css/fullcalendar.css" rel="stylesheet">
		<link href="css/fullcalendar.print.css" rel="stylesheet" media="print">
		<link href="css/toastr.min.css" rel="stylesheet">
		<link href="css/ark.css" rel="stylesheet" type="text/css">
		<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		<!--[if lt IE 9]>
            <script src="/manager/js/html5shiv.js"></script>
            <script src="/manager/js/respond.min.js"></script>
        <![endif]-->
		<script src="js/jquery.min.js"></script>
	</head>

	<body class="cover">
		<div class="wrapper">
			<!-- HEAD NAV -->
			<DIV class="navbar navbar-default navbar-static-top navbar-main" role="navigation">
				<DIV class="navbar-header">
					<A class="navbar-brand" href="#">
						运营管理后台</A>
				</DIV>
				<UL class="nav navbar-nav navbar-left">
					<LI class="sidemenu-switch">
						<A href="#">
							<SPAN class="sr-only">Toggle navigation</SPAN>
							<I class="fa fa-bars"></I>
						</A>
					</LI>
				</UL>
				<UL class="nav navbar-nav navbar-right">
					<LI class="visible-xs">
						<A class="navbar-toggle" href="#" data-toggle="collapse" data-target=".sidebar">
							<SPAN class="sr-only">Toggle 
  navigation</SPAN>
							<I class="fa fa-bars"></I> </A>
					</LI>
					<LI class="dropdown">
						<A class="dropdown-toggle avatar pull-right" href="#" data-toggle="dropdown">
							<SPAN class="hidden-small">管理员<B 
  class="caret"></B></SPAN> </A>
						<UL class="dropdown-menu pull-right">
							<LI>
								<A href="#">
									<I class="fa fa-sign-out"></I>退出登录</A>
							</LI>
						</UL>
					</LI>
				</UL>
			</DIV>
			<!-- END: HEAD NAV -->
			<!-- BODY -->
			<div class="body">
				<!-- SIDEBAR -->
				<!-- SIDEBAR -->
				<ASIDE class="sidebar">
					<UL class="nav nav-stacked">
						<LI class="menu">
							<A class="menu-toggle" href="#">
								<I class="fa fa-users fa-fw"></I>
								<SPAN class="item-label">玩家管理<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI class="active">
									<A href="user-list.html">
										<I class="fa fa-sort-alpha-asc fa-fw"></I>
										<SPAN>玩家列表</SPAN>
									</A>
								</LI>
								<LI>
									<A href="usergame-list.html">
										<I class="fa fa-list fa-fw"></I>
										<SPAN>玩家游戏统计</SPAN>
									</A>
								</LI>
								<LI>
									<A href="user-gold.html">
										<I class="fa fa-support fa-fw"></I>
										<SPAN>金币记录</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
					
						
						<LI class="menu ">
							<A class="menu-toggle" href="#/user/users">
								<I class="fa fa-user fa-fw"></I>
								<SPAN class="item-label">系统用户<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="user-manage.html">
										<I class="fa fa-sort-alpha-asc fa-fw"></I>
										<SPAN>用户管理</SPAN>
									</A>
								</LI>
								<LI>
									<A href="#">
										<I class="fa fa-th-large fa-fw"></I>
										<SPAN>角色与权限</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
						<LI class="menu ">
							<A class="menu-toggle" href="#/user/users">
								<I class="fa fa-phone fa-fw"></I>
								<SPAN class="item-label">客户服务<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="#">
										<I class="fa fa-credit-card fa-fw"></I>
										<SPAN>会员反馈处理</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
						<LI class="menu ">
							<A class="menu-toggle" href="#/user/users">
								<I class="fa fa-adn fa-fw"></I>
								<SPAN class="item-label">应用管理<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="#/app/notices">
										<I class="fa fa-bullhorn fa-fw"></I>
										<SPAN>公告设置</SPAN>
									</A>
								</LI>
								<LI>
									<A href="#/app/apps">
										<I class="fa fa-android fa-fw"></I>
										<SPAN>版本管理</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
						<LI class="menu ">
							<A class="menu-toggle" href="#/player/players#">
								<I class="fa fa-header fa-fw"></I>
								<SPAN class="item-label">活动管理<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="#/activity/activities">
										<I class="fa fa-sort-alpha-asc fa-fw"></I>
										<SPAN>活动列表</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
						<LI class="menu ">
							<A class="menu-toggle" href="#/player/players#">
								<I class="fa fa-bar-chart-o fa-fw"></I>
								<SPAN class="item-label">数据统计<I class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="richest-player.html">
										<I class="fa fa-users fa-fw"></I>
										<SPAN>玩家排名统计</SPAN>
									</A>
								</LI>
								
							</UL>
						</LI>
						<LI class="menu ">
							<A class="menu-toggle" href="#/player/players#">
								<I class="fa fa-sliders fa-fw"></I>
								<SPAN class="item-label">系统管理<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="#/system/logs">
										<I class="fa fa-history fa-fw"></I>
										<SPAN>系统日志</SPAN>
									</A>
								</LI>
								<LI>
									<A href="#/player/players#">
										<I class="fa fa-cloud fa-fw"></I>
										<SPAN>系统监控</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
					</UL>
				</ASIDE>
				<!-- END: SIDEBAR -->
				<!-- END: SIDEBAR -->
				<section class="content" style="min-height: 866px;">
					<ol class="breadcrumb">
						<li><i class="fa fa-list fa-fw"></i> 玩家统计信息</li>
					</ol>
					<!-- CONTENT -->
					<div class="main-content">
						<ul class="nav nav-tabs" role="tablist">
							<li class="active">
								<a href="#player/counts/game">所有区域</a>
							</li>
							<li>
								<a href="#player/counts/game?area=heishan">黑山</a>
							</li>
							<li>
								<a href="#player/counts/game?area=quyang">曲阳</a>
							</li>
						</ul><br>
						<div class="row">
							<h4 class="col-md-4">玩家统计信息</h4>
						</div>
						<div class="row">
							<div class="col-md-12" role="dataResult">
								<table class="table table-hover table-striped">
									<thead>
										<tr>
											<th colspan="3" style="text-align: center;">玩家信息</th>
											<th colspan="5" style="text-align: center; border-left: 1px solid #eee;">最佳牌型</th>
											<th colspan="3" style="text-align: center; border-left: 1px solid #eee;">房卡场</th>
											<th colspan="3" style="text-align: center; border-left: 1px solid #eee;">金币场</th>
										</tr>
										<tr>
											<th>区域</th>
											<th>帐号</th>
											<th>昵称</th>
											<th>牌型</th>
											<th>番数</th>
											<th>得分</th>
											<th>来源</th>
											<th>牌型时间</th>
											<th>开房数</th>
											<th>胜利数</th>
											<th>失败数</th>
											<th>游戏数</th>
											<th>胜利数</th>
											<th>失败数</th>
										</tr>
									</thead>
									<tbody>

										<tr>
											<td>曲阳</td>
											<td>104575</td>
											<td>欧阳赌圣</td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td>1</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>

										</tr>

										<tr>
											<td>曲阳</td>
											<td>109895</td>
											<td>东郭好运</td>
											<td>w1234556,t777-7,w777=</td>
											<td>16</td>
											<td>16</td>
											<td>room</td>
											<td></td>
											<td>9</td>
											<td>2</td>
											<td>1</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>

										</tr>

										<tr>
											<td>曲阳</td>
											<td>108157</td>
											<td>蛋蛋</td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>

										</tr>

										<tr>
											<td>曲阳</td>
											<td>106199</td>
											<td>小丑</td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>

										</tr>

										<tr>
											<td>曲阳</td>
											<td>109152</td>
											<td>轩辕好运</td>
											<td>w1344666,t333+,w555-</td>
											<td>13</td>
											<td>13</td>
											<td>room</td>
											<td>2018-03-22<br>16:22:14</td>
											<td>9</td>
											<td>3</td>
											<td>3</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>

										</tr>

										<tr>
											<td>曲阳</td>
											<td>106922</td>
											<td>东方自摸</td>
											<td>w68b44,w999=,w111+,w777-</td>
											<td>19</td>
											<td>19</td>
											<td>room</td>
											<td></td>
											<td>1</td>
											<td>1</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>

										</tr>

										<tr>
											<td>曲阳</td>
											<td>101529</td>
											<td>南宫不输</td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td>1</td>
											<td>0</td>
											<td>1</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>

										</tr>

										<tr>
											<td>曲阳</td>
											<td>103867</td>
											<td>枫林</td>
											<td>b23456789t23499b1</td>
											<td>19</td>
											<td>57</td>
											<td>room</td>
											<td>2018-03-22<br>16:22:14</td>
											<td>17</td>
											<td>5</td>
											<td>5</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>

										</tr>

										<tr>
											<td>曲阳</td>
											<td>105206</td>
											<td>东方不输</td>
											<td>b3357,b666-,b999=,w3333=</td>
											<td>17</td>
											<td>17</td>
											<td>room</td>
											<td></td>
											<td>8</td>
											<td>2</td>
											<td>3</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>

										</tr>

										<tr>
											<td>曲阳</td>
											<td>105277</td>
											<td>端木稳赢</td>
											<td>t6678t6,t333+,t4444=,b666=</td>
											<td>12</td>
											<td>36</td>
											<td>room</td>
											<td></td>
											<td>8</td>
											<td>3</td>
											<td>1</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>

										</tr>

										<tr>
											<td>曲阳</td>
											<td>102542</td>
											<td>独孤雀圣</td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td>1</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>

										</tr>

										<tr>
											<td>曲阳</td>
											<td>103227</td>
											<td>司马赌侠</td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td>1</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>

										</tr>

										<tr>
											<td>曲阳</td>
											<td>106616</td>
											<td>上官稳赢</td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>

										</tr>

										<tr>
											<td>曲阳</td>
											<td>108404</td>
											<td>L</td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>

										</tr>

										<tr>
											<td>曲阳</td>
											<td>101726</td>
											<td>刘海涛</td>
											<td>w24b23466w3,w555-,w999-9</td>
											<td>13</td>
											<td>39</td>
											<td>room</td>
											<td>2018-03-22<br>16:22:14</td>
											<td>8</td>
											<td>1</td>
											<td>5</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>

										</tr>

										<tr>
											<td>曲阳</td>
											<td>109272</td>
											<td>东方自摸</td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>

										</tr>

										<tr>
											<td>曲阳</td>
											<td>104246</td>
											<td>王谦</td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td>8</td>
											<td>0</td>
											<td>6</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>

										</tr>

										<tr>
											<td>曲阳</td>
											<td>104601</td>
											<td>王兴</td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td>8</td>
											<td>0</td>
											<td>6</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>

										</tr>

										<tr>
											<td>曲阳</td>
											<td>101583</td>
											<td>天马行空</td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td></td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>

										</tr>

										<tr>
											<td>曲阳</td>
											<td>104224</td>
											<td>皇甫自摸</td>
											<td>w12233456b88,b444+</td>
											<td>9</td>
											<td>9</td>
											<td>room</td>
											<td>2018-03-22<br>16:22:14</td>
											<td>8</td>
											<td>2</td>
											<td>2</td>
											<td>0</td>
											<td>0</td>
											<td>0</td>

										</tr>

									</tbody>
								</table>

								<input type="hidden" id="page" value="1">
								<ul class="pagination pagination-sm pull-left no-bottom-margin no-top-margin" role="pagination">

									<!--前-->

									<li class="disabled">
										<a href="#player/counts/game#">«</a>
									</li>

									<!--中-->

									<li class="disabled">
										<a href="#player/counts/game#">1</a>
									</li>

									<li data-page="2">
										<a>2</a>
									</li>

									<!--后-->

									<li data-page="2">
										<a title="末页">»</a>
									</li>

								</ul>

								<div class="modal fade" role="dialog" id="sureModal" style="z-index: 10000">
									<div class="modal-dialog modal-sm">
										<div class="modal-content">
											<div class="modal-header">
												<h4 class="modal-title">确认要进行此操作吗?</h4>
											</div>
											<div class="modal-footer no-border" data-role="footer">
												<button class="btn btn-default" data-dismiss="modal">取消</button>
												<button class="btn btn-success confirm">确定</button>
											</div>
											<div class="modal-footer no-border" data-role="loading" style="display: none;">
												<img src="css/loading.gif">
											</div>
										</div>
									</div>
								</div>
								<script type="text/javascript">
									function _confirmModal(evn, title, notClose) {
										$('#sureModal').modal('show');
										$('#sureModal .btn-success').unbind('click');
										$('#sureModal .btn-success').on('click', function() {
											evn();
											if(!notClose) {
												$('#sureModal').modal('hide');
												$('.modal-backdrop').hide();
											}
										});
										if(title) {
											$('#sureModal .modal-title').html(title);
										} else {
											$('#sureModal .modal-title').html('确认要进行此操作吗？');
										}
									}
								</script>
								<script type="text/javascript">
									$('ul[role=pagination] li').on('click', function() {
										var page = $(this).attr('data-page');
										if(page && !isNaN(parseInt(page))) {
											goPage(page);
										}
									});
								</script>

							</div>
							<div role="dataLoading" class="col-md-12 center-block text-center" style="display: none">
								<img src="css/loading.gif">
							</div>
						</div>
					</div>
					<!-- END: CONTENT -->
				</section>
			</div>
			<!-- END: BODY -->
		</div>
		<!-- JS -->
		<script src="js/jquery-ui.min.js"></script>
		<script src="js/jquery.uniform.min.js"></script>
		<script src="js/bootstrap.min.js"></script>
		<script src="js/jasny-bootstrap.min.js"></script>
		<script src="js/jquery.autosize.min.js"></script>
		<script src="js/moment.min.js"></script>
		<script src="js/daterangepicker.js"></script>
		<script src="js/bootstrap-datepicker.js"></script>
		<script src="js/fullcalendar.min.js"></script>
		<!-- <script src="/manager/vendor/dropzone/dist/min/dropzone.min.js"></script> -->
		<script src="js/select2.min.js"></script>
		<script src="js/base.js"></script>
		<!-- <script src="/manager/js/ark.js"></script> -->
		<script src="js/toastr.min.js"></script>
		<script src="js/admin.js"></script>

		<script type="text/javascript">
			$('form').on('submit', function(e) {
				e.preventDefault();
				goPage(1);
			})
			/* 分页*/
			function goPage(number) {
				$('div[role=dataResult]').hide();
				$('div[role=dataLoading]').show();
				var name = $('input[name=name]').val();
				var id = $('input[name=id]').val();
				var url = '?page=' + number + '&name=' + name + '&id=' + id;
				$.ajax({
					url: url,
					type: 'get',
					success: function(result) {
						$('div[role=dataResult]').show();
						$('div[role=dataLoading]').hide();
						$('div[role=dataResult]').html(result)
					}
				})
			}
		</script>

	</body>

</html>